<template>
  <div id="app">

    <aside-nav> </aside-nav>
    <router-view v-wechat-title="$route.meta.title"/>
  </div>
</template>

<script>
import Cookies from "js-cookie"
export default {
  name:"App",
  data(){
    return{}
  },
  created(){
    // let token = localStorage.getItem('token')
    // if(token){
    //   localStorage.removeItem('token')
    //   if(Cookies.get('token')){
    //     Cookies.remove('token')
    //   }
    // }
    // console.log("app")
    
  },

  destroyed(){
    let token = localStorage.getItem('token')
    if(token){
      localStorage.removeItem('token')
      if(Cookies.get('token')){
        Cookies.remove('token')
      }
    }
  console.log("app关闭了")

  }
  
}
</script>

<style lang="scss">
body {
    font-size: 12px;
    background-color: #f5f5f5;
    transition: background-color .3s ease;
    -webkit-transition: background-color .3s ease;
}

body, input, textarea {
    -webkit-text-size-adjust: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    font-family: PingFang SC,STHeitiSC-Light,Helvetica-Light,arial,sans-serif,Droid Sans Fallback;
    color: #333;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
div,
p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol {
  padding: 0;
  margin: 0;
}
ul,
ol {
  list-style: none;
}
a,
a:visited,
a:active,
a:link
a:hover {
  color: #000;
  text-decoration: none;
  // 针对a标签在移动端的点击高亮(设置为透明度)
  -webkit-tap-highlight-color: transparent;
}


</style>
